how to use the Translation API